home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio / GISO / Source / PrefPanel.h < prev    next >
Text File  |  1992-07-03  |  1KB  |  46 lines

  1. /*    
  2. **    Copyright (C) 1992  Ronin Consulting, Inc.
  3. **
  4. **    This program is free software; you can redistribute it and/or modify
  5. **    it under the terms of the GNU General Public License as published by
  6. **    the Free Software Foundation; version 1.
  7. **
  8. **    This program is distributed in the hope that it will be useful,
  9. **    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. **    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11. **    GNU General Public License for more details.
  12. **
  13. **    You should have received a copy of the GNU General Public License
  14. **    along with this program; if not, write to the Free Software
  15. **    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  16. */
  17.  
  18. /*
  19. ** This is a simple preference panel controller. It is a sublcass of Defaults so that 
  20. ** You can easily maintain the defaults.
  21. */
  22.  
  23. #import <objc/Object.h>
  24.  
  25. @interface PrefPanel : Object
  26. {
  27.     id panel;
  28.     id defaults;
  29. }
  30.  
  31. - init;
  32. - revert:sender;
  33. - ok:sender;
  34. - cancel:sender;
  35. - save:sender;
  36.  
  37. - setPanel: aPanel;
  38.  
  39. - makeKeyAndOrderFront: sender;             /* load the nib the first time this is called */
  40.  
  41. /* panel delagated methods */
  42. - windowDidBecomeKey: sender;             /* load the fields from your defaults here */
  43.  
  44. @end
  45.  
  46.